package top.jingles.app.android.SudokuHelper.jni;

public class JNIHelper {
   static {
      System.loadLibrary("sudoku"); // Load native library at runtime
                                   // sudoku.dll (Windows) or libsudoku.so (Unixes)
   }

   // Declare a native method getSudokuString(String picPath) that receives a path of a picture and returns the sudoku string of json format
   private native String getSudokuString(String picPath);

   public static String getSudokuJsonString(String picPath) {
      return new JNIHelper().getSudokuString(picPath);  // invoke the native method
   }

   // Test Driver
   public static void main(String[] args) {
      new JNIHelper().getSudokuString("");  // invoke the native method
   }
}

